package com.cjkj.system.api.factory;

import com.cjkj.system.api.RemoteWeChatService;
import com.cjkj.system.api.domain.request.APIWechatSessionReq;
import org.springframework.cloud.openfeign.FallbackFactory;

/**
 * 微信远程调用降级
 */
public class RemoteWechatFallbackFactory implements FallbackFactory<RemoteWeChatService> {
    @Override
    public RemoteWeChatService create(Throwable cause) {
        return new RemoteWeChatService(){
            @Override
            public String getSessionByCode(APIWechatSessionReq req) {
                return  null;
            }
        };
    }
}